package com.xtkj.superclub_entity.entity.friendsCircle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 项目名称：superclub
 * 类 名 称：ShareComment
 * 类 描 述：TODO
 * 创建时间：2020/1/2 15:40
 * 创 建 人：xiezhiyan
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain=true)
@ToString
@TableName(value = "f_sharecomment")
@ApiModel(value = "朋友圈评论")
public class ShareComment implements Serializable {
    @TableId(value = "comment_id",type = IdType.INPUT)
    @ApiModelProperty(name = "commentId",value = "评论id")
    private String commentId;//评论id
    @ApiModelProperty(name = "content",value = "评论内容")
    private String content;//评论内容
    @ApiModelProperty(name = "commentUserId",value = "评论的用户id")
    private String commentUserId;//评论的用户id
    @ApiModelProperty(name = "shareId",value = "分享的id")
    private String shareId;//分享的id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "createdtm",value = "创建时间")
    private Date createdtm;//创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "updatedtm",value = "修改时间")
    private Date updatedtm;//修改时间

   @TableField(exist = false)
    private List<ShareReply> shareReply;
}